package com.ifast.hnzk.service;

import com.ifast.hnzk.domain.NewsDO;
import com.ifast.common.base.CoreService;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2019-06-10 10:56:21 | wch</small>
 */
public interface NewsService extends CoreService<NewsDO> {
    /**
     * 根据新闻ID 和类型取得上一篇新闻
     */
    public NewsDO getNewsPrev(Long newsId, Integer type);

    /**
     * 根据新闻ID 和类型取得下一篇新闻
     */

    public NewsDO getNewsNext(Long newsId, Integer type);
}
